#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

int g_val = 100;

int add (int x, int y)
{
	printf ("x = %p\n", &x);
	printf ("y = %p\n", &y);
	x++;
	return x + y;
}
int main (void)
{
	static int a = 10;
	int b = 20;
	int ret = 0;
	int arr[] = {0};
	printf ("pid = %d\n", getpid());
	printf ("a = %p, b = %p, ret = %p, arr = %p, g_val = %p\n", &a, &b, &ret, arr, &g_val);

	ret = add (a, b);
	printf ("a = %d\n", a);


	getchar ();
	return 0;
}
